package com.wondertek.poms.service.vo;

import com.wondertek.poms.common.utils.validate.GroupType;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.groups.Default;

/**
 * @author evan0213
 * @description
 */
@Data
public class SpecialConfigGameVo {

	@NotBlank(message = "key值不能为空", groups = {Default.class})
	@Length(max = 6, min = 6, message = "key必须是6位数字组成", groups = {Default.class, GroupType.Update.class})
	private String key;
	@NotBlank(message = "策略名称不能为空", groups = {Default.class})
	@Length(max = 30, message = "名称最多30个汉字", groups = {Default.class})
	private String name;
	private String details;
	@NotNull(message = "状态不能为空", groups = {Default.class, GroupType.Update.class})
	private Integer status;
	@NotNull(message = "有效字段不能为空", groups = {Default.class})
	private Integer validField;

}
